#ifndef _CLIENT_THREAD_H_
#define _CLIENT_THREAD_H_

#include "BaseThread.h"
#include "VNCClient.h"

class CVNCClientThread:public BaseThread
{
private:
	typedef struct _tagClientParam
	{
		BaseClient* client;
		BaseSocket* socket;
		bool        bAuth;
		bool        bShared;
	}TClientParam;
public:
	CVNCClientThread();
	virtual ~CVNCClientThread();
public:
	bool Init(BaseClient* lpClient,BaseSocket* socket,bool bAuth,bool bShared);
	void Stop();
private:
	void Run( void* lpVoid );
private:
	TClientParam* m_lpParam;
	bool m_bStop;
};

#endif